<?php
// +----------------------------------------------------------------------
// | CatchAdmin [Just Like ～ ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------

// you should use `$router`
/* @var think\Route $router */

$router->group(function () use ($router){

    //宣教
    $router->resource('education', '\catchAdmin\propaganda\controller\Education');

    //宣教保存
    $router->post('education/save', '\catchAdmin\propaganda\controller\Education@save');

    //宣教更新
    $router->post('education/update', '\catchAdmin\propaganda\controller\Education@update');

    //宣教删除
    $router->post('education/delete', '\catchAdmin\propaganda\controller\Education@delete');

    //宣教详情
    $router->any('education/detailed', '\catchAdmin\propaganda\controller\Education@detailed');

    //封面图上传
    $router->post('education/uploadfile', '\catchAdmin\propaganda\controller\Education@uploadfile');

    //宣教分类
    $router->resource('educationclass', '\catchAdmin\propaganda\controller\Educationclass');

    //获取宣教分类数据
    $router->get('get_educationclass', '\catchAdmin\propaganda\controller\Educationclass@get_educationclass');

    //获取宣教类别
    $router->get('get_education', '\catchAdmin\propaganda\controller\Education@get_education');

    //在院宣教
    $router->resource('educationin', '\catchAdmin\propaganda\controller\Educationin');

    //发送宣教
    $router->post('educationin/push', '\catchAdmin\propaganda\controller\Educationin@push');

    //宣教记录
    $router->get('edhistory', '\catchAdmin\propaganda\controller\Educationin@edhistory');

    //患者详情-宣教记录
    $router->post('educationin/patient_ed_center', '\catchAdmin\propaganda\controller\Educationin@patient_ed_center');

    $router->get('dcexcel', '\catchAdmin\propaganda\controller\Educationin@dcexcel');

    //获取宣教短信模板
    $router->any('get_ed_sms_template', '\catchAdmin\propaganda\controller\Educationin@get_ed_sms_template');

    //宣教记录详情
    $router->post('educationin/edhistory_details', '\catchAdmin\propaganda\controller\Educationin@edhistory_details');

    //删除宣教计划
    $router->post('educationin/del_edhistory', '\catchAdmin\propaganda\controller\Educationin@del_edhistory');

    //获取满意度问卷
    $router->any('get_satisfied_quest', '\catchAdmin\propaganda\controller\Education@get_satisfied_quest');

    //获取宣教满意度问卷列表
    $router->any('ed_satisfied_quest', '\catchAdmin\propaganda\controller\Education@ed_satisfied_quest');

    //保存宣教满意度问卷
    $router->post('education/save_satisfied_quest', '\catchAdmin\propaganda\controller\Education@save_satisfied_quest');

    //更新宣教满意度问卷
    $router->post('education/up_satisfied_quest', '\catchAdmin\propaganda\controller\Education@up_satisfied_quest');

    //删除宣教满意度问卷
    $router->post('education/del_satisfied_quest', '\catchAdmin\propaganda\controller\Education@del_satisfied_quest');

    //宣教记录-数据分析-数据概况
    $router->any('edDataProfiling', '\catchAdmin\propaganda\controller\Educationin@edDataProfiling');
    //宣教记录-数据分析-数据详情
    $router->any('edDataAnalysisDetails', '\catchAdmin\propaganda\controller\Educationin@edDataAnalysisDetails');
    //宣教记录-数据分析-排行榜
    $router->any('edDataAnalysisRanking', '\catchAdmin\propaganda\controller\Educationin@edDataAnalysisRanking');
    //宣教记录-数据分析-折线图
    $router->any('edDataAnalysisChart', '\catchAdmin\propaganda\controller\Educationin@edDataAnalysisChart');
})->middleware('auth');

